package adapter.classadapter;

/**
 * Created by IntelliJ
 * Author:熊磊
 */
public class Phone {
    public void charging(IVoltage5V iVoltage5V){
        if (iVoltage5V.output5V()==5){
            System.out.println("电压为5V,开始充电");
        } else {
            System.out.println("电压不等于5V,不能充电");
        }
    }

}
